package com.athuiju.fenxiaoback.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户持有优惠券的使用情况表
 * </p>
 *
 * @author athuiju
 * @since 2021-06-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="TbUserCoupon对象", description="用户持有优惠券的使用情况表")
public class TbUserCoupon implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "每张优惠券的编号")
    @TableId(value = "coupon_code", type = IdType.AUTO)
    private Long couponCode;

    @ApiModelProperty(value = "优惠卷id（coupon表的id）")
    private Long couponId;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "是否使用，0、未使用  1、已使用  2、已过期")
    private String status;


}
